package com.snailct.bpp.service.core.definition;

/**
 * Created by huangxa on 2016/7/13.
 */
public enum ServiceType {
    HTTP,
    SPRING,
    WS,
    RMI;


    public static ServiceType getServiceType(String type){

        for(ServiceType serviceType : ServiceType.values()){
            if(type.equals(serviceType.name())) {
                return serviceType;
            }

        }
        return null;
    }
}
